package com.example.springboot.exception;

/**
 * @Description: TODO
 * @author: scott
 * @date: 2022年03月27日 10:09
 */
import lombok.Getter;

/**
 * 自定义异常
 */
@Getter
public class ServiceException extends RuntimeException {
    private String code;

    public ServiceException(String code, String msg) {
        super(msg);
        this.code = code;
    }

}
